import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 重置样式
import 'normalize.css'
import '@/assets/styles/common.css'

// 导入三级联动组件
import TypeNav from '@/components/TypeNav'
// swiper组件
import Swiper from '@/components/Carousel'
// 分页组件
import Pagiination from '@/components/Pagination'

// 引入mockSever.js
import '@/mock/mockSever'

// 引入swiper样式
import 'swiper/scss'
import 'swiper/scss/navigation'
import 'swiper/scss/pagination'

createApp(App)
  .use(store)
  .use(router)
  .component('type-nav', TypeNav) // 全局注册三级联动组件
  .component('swiper', Swiper) // 全局注册swiper组件
  .component('pagination', Pagiination) // 全局注册分页组件
  .mount('#app')
